﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace gChartSharp
{
    public class AxisRangeParam : ParamBase<AxisRange>, IRenderable
    {
        public override string Name { get { return "chxr"; } }

        protected override char ParamSeparator { get { return '|'; } }
    }

    public class AxisRange : IRenderable
    {
        public int AxisIndex { get; set; }
        public int Start { get; set; }
        public int End { get; set; }

        public string Render()
        {
            return String.Format("{0},{1},{2}", AxisIndex, Start, End);
        }
    }
}
